#define _CRT_SECURE_NO_WARNINGS

#include"BinarySearchTree.h"
int main()
{
	BSTree<int> bt;
	int arr[] = { 5,2,6,0,9,1,7,3 };
	for (auto e : arr)
	{
		bt.insertR(e);
	}
	bt.Preorder();
	for (auto e : arr)
	{
		bt.eraseR(e);
		bt.Preorder();
	}
	 
	return 0;
}